import request from '@/utils/request'

const diyApi = {
    /**
     * 装修详情
     */
    detail(scene: number): Promise<any> {
        return request.get({
            url: '/diy/detail',
            params: {
                scene
            }
        })
    },

    /**
     * 装修保存
     */
    save(params: {
        scene: number;
        data: any;
    }): Promise<any> {
        return request.post({
            url: '/diy/save',
            params
        })
    }
}

export default diyApi
